﻿<uu:UTabletop x:Class="UTable.Objects.UDining"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    xmlns:uu="clr-namespace:UTable.Objects"
    xmlns:uc="clr-namespace:UTable.Objects.Controls"
    Height="768" Width="1024">
    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="Images/Background/Wood-By-desk.jpg"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="150" />
            <RowDefinition Height="456*" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="50" Text="Welcome to uDining" FontFamily="Calibri" Foreground="#552800" FontWeight="Bold"/>
        <Grid Grid.Row="1">
            <Border Background="White" Margin="160, 10, 160, 160" BorderThickness="4" BorderBrush="#552800" CornerRadius="12">
                <uc:UGridView x:Name="AppGrid" ItemWidth="180" ItemHeight="200" ItemsSource="{Binding Applications}" LayoutMargin="10, 5, 10, 5" CellMargin="15">
                    <uc:UGridView.ItemTemplate>
                        <DataTemplate>
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="150" />
                                    <RowDefinition Height="50" />
                                </Grid.RowDefinitions>
                                <Image Grid.Row="0" Source="{Binding Icon}"/>
                                <TextBlock Grid.Row="1" Text="{Binding Title}" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </Grid>
                        </DataTemplate>
                    </uc:UGridView.ItemTemplate>
                </uc:UGridView>
            </Border>
        </Grid>
    </Grid>
</uu:UTabletop>